package com.itheima.stock.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.enums.BooleanEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@HeadRowHeight(32)
@ColumnWidth(43)
public class User implements Serializable {
    //内容斜体
    //@ContentFontStyle(italic = BooleanEnum.TRUE,color =2)
    //@ExcelProperty(value = {"用户信息详情","用户名"})
    private String userName;
    //@ExcelProperty(value = {"用户信息详情","年龄"})
    private Integer age;
    //@ExcelProperty(value = {"用户信息详情","地址"})
    private String address;
    //@ExcelProperty(value = {"用户信息详情","生日"})
    //@DateTimeFormat("yyyyMMDD")
    private Date birthday;
}